package com.lzw.security.mapper;

import com.lzw.security.entity.Category;
import com.lzw.security.entity.Commodity;
//import com.lzw.security.entity.DosingCommodity;
import com.lzw.security.entity.CommodityAccessory;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020-3-29 11:43
 * @description：
 * @modified By：
 * @version:
 */
@Service
public interface CommodityMapper {
    List<Commodity> checkCommodityInCategory(Category category);
    Integer addCommodity(Commodity commodity);
    Integer updateCommodity(Commodity commodity);
    Integer deleteCommodity(int id);
    Integer inCategoryCommodityNumber(int id);
    List<Commodity> checkAdminCommodityInCategory(Category category);
//    Integer addDosingInCommodity(DosingCommodity dosingCommodity);
//    Integer deleteDosingInCommodity(DosingCommodity dosingCommodity);
    Commodity getCommodity(int id);
    Integer addCommodityAccessory(CommodityAccessory commodityAccessory);
    Integer deleteCommodityAccessory(CommodityAccessory commodityAccessory);
}
